package it.fuesi.synoutils.services.client;

import it.fuesi.synoutils.model.emulesearch.EmuleSearchResultsResponse;
import it.fuesi.synoutils.model.emulesearch.EmuleSearchStartResponse;
import it.fuesi.synoutils.services.constants.Service;
import it.fuesi.synoutils.services.constants.ServiceType;
import retrofit.http.Field;
import retrofit.http.FormUrlEncoded;
import retrofit.http.POST;

/**
 * Created by pascotto on 16/10/14.
 */
@ServiceType(Service.Synology)
public interface EmuleSearchClient {

    @POST("/webman/3rdparty/DownloadStation/aMuleUI/search.cgi")
    @FormUrlEncoded
    EmuleSearchStartResponse start(@Field("key") String key, @Field("action") String action, @Field("type") int type, @Field("fileType") int fileType, @Field("searchid") int searchid);

    @POST("/webman/3rdparty/DownloadStation/aMuleUI/search.cgi")
    @FormUrlEncoded
    EmuleSearchResultsResponse list(@Field("searchid") int searchid, @Field("action") String action, @Field("sort") String sort, @Field("dir") String dir, @Field("start") int start, @Field("limit") int limit);

}
